import './assets/css/index.css'
import '../build/loaders/sassLoader?flag=inline!./assets/css/index.scss'

console.log('abcdefg')

let res = [1, 2, 3, 4].reduce((total, item) => (total + item), 0)
console.log(res)



if ('serviceWorker' in navigator) {
    window.addEventListener('load', () => {
        navigator.serviceWorker.register('./service-worker.js').then(registration => {
            console.log('SW registered: ', registration);
        }).catch(registrationError => {
            console.log('SW registration failed: ', registrationError);
        });
    });
}